<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登记机关</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body>
<div class="Wrapper">
     <div id="pageInTab" class="pageInTab">
	 <form id="prj_prd_lic_org_form">
                        <div class="fieldset1 tabel_col clearFix">
                       
			                          <div class="fieldBox col_100_auto">
			                           <div class="label">上牌地点</div>
			                             <div class="field">
					               			<jsp:include page="../../project/prjprdlicorg/licOrgRegion.jsp" flush="true" >
					               			<jsp:param name="sysStdRegionDefShowLvl" value="3"/> 
											<jsp:param name="sysStdRegionProvCdNm"  value="上牌地点"/>
											<jsp:param name="sysStdRegionCityCdNm" value=""/>
											<jsp:param name="sysStdRegionDistCdNm" value=""/> 
											</jsp:include>
				                			<span class="requiredSymbol">*</span>
				                    </div>
								
							
				      			 	 </div> 
		               		  <div class="fieldBox col_50">
				                    <div class="label">上牌机构</div>
				                    <div class="field">
				                        <input name="licOrgNm"  id="licOrgNm" type="text" class="ui-textbox" value=""  validate="{required:true}" >
				                          <span class="requiredSymbol">*</span>
				                    </div>
		               		 </div>
                            </div>
			<!-- 	<div class="btnsBox">
	                <span id="prj_prd_lic_org_add_btn_id" class="sq-button sq-button-hasicon l-dialog-btn-ok" onclick="save();"><i class="sqBtnIco_10"></i>保存</span>
        		</div> -->
                    </form>
				</div>
	<script>
		$(function() {
			 var ligerForm = liger.get("prj_prd_lic_org_form");
		   $("#prj_prd_lic_org_form").ligerForm({
                validate: true
           });
		});
		 frameElement.dialog.onSave=function(){
	        var ligerForm = liger.get("prj_prd_lic_org_form");
	        if (!ligerForm.valid()) {
	            top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO,SQ_type: "warning"});
	            return false; //验证不通过，不执行以下代码
	        }
	        var data = ligerForm.getData();
	        var url = '<%=path%>/project/prjprdlicorg/add.do';
	        var wait_dialog;
	        $.ajax({
	    		type: 'post',
	    		dataType:'json',
	    		data:data,
	    		url: url,
	    		beforeSend: function(){
			          wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
			     },
	    		success:function(msg){
	    			 wait_dialog.close();
	    			 if(msg.success == 1){
	    				 $("#licId").val(msg.data);
	    				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "success"});
	    				 parent.$.ligerDialog.close();
	     				parent.$(".l-dialog,.l-window-mask").css("display","none"); 
	     				parent.grid.reload();
	    			 }else{
	    				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
	    			 }
	    		}
	    	});
		}
	</script>

</body>
</html>